package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class WebLoginController {
    //登录页面的跳转
    @GetMapping("login.html")
    public String login(HttpServletRequest request){
        //实现登录之后页面跳转回之前的业务界面
        String originalUrl = request.getParameter("originalUrl");
        request.setAttribute("originalUrl",originalUrl);
        return "login";
    }
}
